package com.j2eefast.bussiness.contract.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.bussiness.contract.entity.PayPieceEntity;
import com.j2eefast.bussiness.contract.entity.PayTimingEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>计件工资</p>
 *
 * @author: summer
 * @date: 2021-06-09 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PayPieceMapper extends BaseMapper<PayPieceEntity> {

    boolean updateRepair(@Param("recordList") List<PayPieceEntity> recordList);

    boolean saveRepair(@Param("recordList") List<PayPieceEntity> recordList);

    boolean updateQuit(@Param("payPieceEntity") PayPieceEntity payPieceEntity);

    List<PayPieceEntity> repairList(@Param("id") int id);
    PayPieceEntity repairInfo(@Param("id") int id);

    public boolean deleteByIds(@Param("ids") Long[] ids);
    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
    //查询用户信息
    public SysUserEntity getSysById(@Param("userId") Long userId);

    /**
     * 页面查询流程实例分页
     * @return
     */
    Page<PayPieceEntity> findPage(IPage<?> params,
                                  @Param("payId") String payId,
                                  @Param("productionNumber") String productionNumber,
                                  @Param("department") String department,
                                  @Param("department2") String department2,
                                  @Param("name") String name,
                                  @Param("name2") String name2,
                                  @Param("productCode") String productCode,
                                  @Param("productName") String productName,
                                  @Param("unit") String unit,
                                  @Param("processName") String processName,
                                  @Param("processPrice") String processPrice,
                                  @Param("orderNum") String orderNum,
                                  @Param("amount") String amount,
                                  @Param("completedQuantity") String completedQuantity,
                                  @Param("remark") String remark,
                                  @Param("beginTime") String startTime,
                                  @Param("endTime") String endTime,
                                  @Param("sql_filter") String sql_filter);

    List<PayPieceEntity> findList(IPage<?> params,
                                  @Param("payId") String payId,
                                  @Param("name") String name,
                                  @Param("productionNumber") String productionNumber,
                                  @Param("productCode") String productCode,
                                  @Param("productName") String productName,
                                  @Param("processCode") String processCode,
                                  @Param("processName") String processName,
                                  @Param("completedQuantity") String completedQuantity,
                                  @Param("startTime") String startTime,
                                  @Param("endTime") String endTime,
                                  @Param("sql_filter") String sql_filter);


}
